
<!DOCTYPE html>
<html>
  <head>
    
<meta charset="utf-8" >

<title>编码电机小车走直线调试记录 | 集邮</title>
<meta name="description" content="集邮不是集邮，可能是某种收藏癖好，收集创客相关">

<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/3.7.0/animate.min.css">

<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.7.2/css/all.css" integrity="sha384-fnmOCqbTlWIlj8LyTjo7mOUStjsKC4pOpQbqyi7RrhN7udi9RwhKkMHpvLbHG9Sr" crossorigin="anonymous">
<link rel="shortcut icon" href="https://djzrs.gitee.io/jiyou/favicon.ico?v=1711621826170">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.10.0/katex.min.css">
<link rel="stylesheet" href="https://djzrs.gitee.io/jiyou/styles/main.css">



<script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
<script src="//cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.5.1/build/highlight.min.js"></script>



  </head>
  <body>
    <div id="app" class="main">
      <div class="site-header-container">
  <div class="site-header">
    <div class="left">
      <a href="https://djzrs.gitee.io/jiyou">
        <img class="avatar" src="https://djzrs.gitee.io/jiyou/images/avatar.png?v=1711621826170" alt="" width="32px" height="32px">
      </a>
      <a href="https://djzrs.gitee.io/jiyou">
        <h1 class="site-title">集邮</h1>
      </a>
    </div>
    <div class="right">
      <transition name="fade">
        <i class="icon" :class="{ 'icon-close-outline': menuVisible, 'icon-menu-outline': !menuVisible }" @click="menuVisible = !menuVisible"></i>
      </transition>
    </div>
  </div>
</div>

<transition name="fade">
  <div class="menu-container" style="display: none;" v-show="menuVisible">
    <div class="menu-list">
      
        
          <a href="https://djzrs.gitee.io/jiyou" class="menu purple-link">
            首页
          </a>
        
      
        
          <a href="https://djzrs.gitee.io/jiyou/archives" class="menu purple-link">
            归档
          </a>
        
      
        
          <a href="https://djzrs.gitee.io/jiyou/tags" class="menu purple-link">
            标签
          </a>
        
      
        
          <a href="https://djzrs.gitee.io/jiyou/qfwytkg2n" class="menu purple-link">
            关于
          </a>
        
      
    </div>
  </div>
</transition>


      <div class="content-container">
        <div class="post-detail">
          
            <div class="feature-container" style="background-image: url('https://djzrs.gitee.io/jiyou/post-images/mrHEj6sbS.png')">
            </div>
          
          <h2 class="post-title">编码电机小车走直线调试记录</h2>
          <div class="post-info post-detail-info">
            <span><i class="icon-calendar-outline"></i> 2024-03-15</span>
            
              <span>
                <i class="icon-pricetags-outline"></i>
                
                  <a href="https://djzrs.gitee.io/jiyou/kp03IaAvp/">
                    PID
                    
                      ，
                    
                  </a>
                
                  <a href="https://djzrs.gitee.io/jiyou/czsRaH2f15/">
                    mixly
                    
                      ，
                    
                  </a>
                
                  <a href="https://djzrs.gitee.io/jiyou/nfUhliW-3W/">
                    米思齐
                    
                      ，
                    
                  </a>
                
                  <a href="https://djzrs.gitee.io/jiyou/8aXm1XVxUz/">
                    arduino
                    
                      ，
                    
                  </a>
                
                  <a href="https://djzrs.gitee.io/jiyou/y20EK6uV5M/">
                    车
                    
                      ，
                    
                  </a>
                
                  <a href="https://djzrs.gitee.io/jiyou/BfAm85hJD6/">
                    循线
                    
                      ，
                    
                  </a>
                
                  <a href="https://djzrs.gitee.io/jiyou/FeWR2EWsTR/">
                    巡线
                    
                  </a>
                
              </span>
            
          </div>
          <div class="post-content" v-pre>
            <p>编码电机小车走直线调试记录</p>
<p>去年B站学了一下PID循线/巡线？，没有调出来，教程讲的很清楚，我感觉也听明白了，同款传感器也买了就是调不出来，然后放弃了。</p>
<!-- more -->
<p>最近又到比赛季了，把去年买的两个带编码器的TT马达拿出来试试让小车走直线。只使用了P没用ID。</p>
<p>根据去年的学习记忆，用mixly编了一下程序，调了半天就是不行，然后就懵逼了，感觉程序没问题又感觉哪不对劲，问了好多人要程序。然后百度搜到了一个。在这：<a href="http://blog.chinaaet.com/yichangzhang/p/32958#">Arduino编码器小车左右转速同步的PID调节实验</a>对比发现只需要调一边的轮子，改了之后哎果然有效果了。</p>
<p><strong>视频</strong><br>
<a href="https://www.bilibili.com/video/BV1eF4m1c7aW/?share_source=copy_web&amp;vd_source=a5afd85b4d01fe66bd0a199a87982c8f">【走直线】 </a></p>
<p><strong>程序</strong><br>
<img src="https://djzrs.gitee.io/jiyou/post-images/screenshot.png" alt="screenshot" loading="lazy"></p>
<p><strong>硬件</strong><br>
<img src="https://djzrs.gitee.io/jiyou/post-images/e4a1fa11ec5d1e51a504d35c56dfdb0.jpg" alt="e4a1fa11ec5d1e51a504d35c56dfdb0" loading="lazy"><br>
<img src="https://djzrs.gitee.io/jiyou/post-images/6153755d064f7edd1566da5749c354c.jpg" alt="6153755d064f7edd1566da5749c354c" loading="lazy"><br>
<img src="https://djzrs.gitee.io/jiyou/post-images/8cb1289d4b117b54c677ad04f8c3ec9.jpg" alt="8cb1289d4b117b54c677ad04f8c3ec9" loading="lazy"></p>
<p>🤡</p>

          </div>
        </div>

        
          <div class="next-post">
            <a class="purple-link" href="https://djzrs.gitee.io/jiyou/tAT_jwKDq/">
              <h3 class="post-title">
                下一篇：尚视界1.44寸屏microblocks编译配置
              </h3>
            </a>
          </div>
          
      </div>

      

      <div class="site-footer">
  <div class="slogan">集邮不是集邮，可能是某种收藏癖好，收集创客相关</div>
  <div class="social-container">
    
      
        <a href="https://gitee.com/djzrs/jiyou" target="_blank">
          <i class="fab fa-github"></i>
        </a>
      
    
      
        <a href="https://qm.qq.com/q/MAQoNdBsw6" target="_blank">
          <i class="fab fa-twitter"></i>
        </a>
      
    
      
        <a href="https://qm.qq.com/q/MAQoNdBsw6" target="_blank">
          <i class="fab fa-weibo"></i>
        </a>
      
    
      
        <a href="https://qm.qq.com/q/MAQoNdBsw6" target="_blank">
          <i class="fab fa-zhihu"></i>
        </a>
      
    
      
        <a href="https://qm.qq.com/q/MAQoNdBsw6" target="_blank">
          <i class="fab fa-facebook"></i>
        </a>
      
    
  </div>
  Powered by <a href="https://github.com/getgridea/gridea" target="_blank">Gridea</a>
联系我：djzrs@qq.com | <a class="rss" href="https://djzrs.gitee.io/jiyou/atom.xml" target="_blank">RSS</a>
</div>


    </div>
    <script type="application/javascript">

hljs.initHighlightingOnLoad()

var app = new Vue({
  el: '#app',
  data: {
    menuVisible: false,
  },
})

</script>




  </body>
</html>
